<template>
  <div class="login">
    <div class="login-item" @click="loginClick">
      <div class="item">登录</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    loginClick() {
      this.$emit("loginClick");
    },
  },
};
</script>

<style scoped>
.login {
  width: 100vw;
  height: 100vh;
  position: relative;
  opacity: 0.9;
}

.login-item {
  width: 28%;
  height: 15%;
  background: url("../../../assets/img/regisetr/login2.jpg");

  border-radius: 50%;
  text-align: center;
  position: absolute;
  left: 38%;
  top: 44%;
  transform: translate(-50%, -50%);
  line-height: 100px;
  font-size: 30px;
  font-weight: bold;
  border: 3px solid #deeaeb;
  box-shadow: 4px 6px 10px #f3bfad;
  color: #fff;
  transform: scale(2);

  animation: faDa 5s linear infinite;
}

.item {
  opacity: 1;
}

@keyframes faDa {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  50% {
    opacity: .8;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(2);
  }
}
</style>
